home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19950329-19950528
/
000038_news@columbia.edu_Tue Apr 4 05:36:36 1995.msg
< prev
next >
Wrap
Internet Message Format
|
1995-07-31
|
4KB
Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA10378
(5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Tue, 4 Apr 1995 01:36:49 -0400
Received: by apakabar.cc.columbia.edu id AA23814
(5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Tue, 4 Apr 1995 01:36:46 -0400
Path: news.columbia.edu!watsun.cc.columbia.edu!jaltman
From: jaltman@watsun.cc.columbia.edu (Jeffrey Altman)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: starting SLIP from Ckermit (OS/2 beta)
Date: 4 Apr 1995 05:36:36 GMT
Organization: Columbia University
Lines: 125
Message-Id: <3lqlt5$n7v@apakabar.cc.columbia.edu>
References: <3liark$asl@sunny.bahnhof.se> <3lk18b$dih@mozo.cc.purdue.edu>
Nntp-Posting-Host: watsun.cc.columbia.edu
Apparently-To: kermit.misc@watsun.cc.columbia.edu
Kyler Laird <laird@nettle.ecn.purdue.edu> wrote:
I hope you don't mind my hacking, but I thought I could add one or two ideas.
>; PUCC_SLIP.KRM
>; Use this script to SL/IP into PUCC from OS/2 Warp
>; using C-Kermit 5A(191)
>
>;--------------------
>;variable definitions
>;--------------------
>
>;serial port number
>def \%o 1
>
>;machine name
>;def \%m coastal.ecn.purdue.edu
>def \%m nettle.ecn.purdue.edu
>
>;machine address (use "tia -address" to find out)
>;def \%a 128.46.161.160
>def \%a 128.46.161.85
>
>;login
>def \%l laird
>
>;password
>def \%p secret
>
>;shell prompt
>def \%r %
>
>;---------------------------------
>
>;set to bogus line so that SLIP.EXE can start
>set line com0
You could also say SET NETWORK TCP/IP or anything else that changes the port
from the one that SLIP.EXE is defined to use.
>
>;start SLIP.EXE
>!start "SL/IP into PUCC" /n /min slip -com\%o -ifconfig 192.0.2.1 \%a +defaultroute -p2 -rtscts
>
I'm not sure that the -comN variable is needed if you have a properly
configured SLIP.CFG file.
>;wait for SL/IP connection to initialize
>!slipwait
>
>set line slipcom\%o
This could have been done without SLIPWAIT by using the following C-Kermit
code:
:waiting
set port slipcom\%o
xif failure { pause 1, goto waiting }
>set speed 57600
>
>;call PUCC
I would replace this whole dialing section with a Services Directory
entry.
>
>;release shared serial port by setting to bogus port
>set line com0
I like to use the same port just so I know that the SLIP Driver was released.
set port com\%o
This will fail after the SLIP Driver is released.
If you didn't know the address at dial in time, but instead were told it
during the login statement, you would need to parse the incoming data for
the IP address and then make appropriate calls to ifconfig.exe and possibly
update the RESOLVE file at this point.
>
>;*Note that you could just put "quit" here.
>; The SL/IP stuff is all going on in another session.
>; The following is just because I usually want to run
>; telnet.
>
>; You could also add lines like
>;!start EXPLORE.EXE
>; so that TCP/IP applications (like Web Explorer) will
>; automatically start after connection.
>
Good points.
>;connect to machine via TCP/IP (telnet)
>net tcp/ip \%m
>
>;login to machine (again)
>unixlogin \%l \%p \%r
>
Again, this is perfect for a Service Directory entry.
>;present terminal emulation screen
>connect
>
Jeffrey Altman * PO Box 220415 * Great Neck, NY * 11022-0415 * (516) 466-5495
"C-Kermit: available on more platforms than any other communications software."
"Kermit FTP: sending files whenever and wherever they are needed."
OS/2 version 5A(190): ftp://kermit.columbia.edu/kermit/archives/cko190.zip